package bookExercise;

public class A3CheckGradeDemo {
    public static void main(String[] args) {
        A3CheckGrade a =(garde) ->{
            if(garde >=90 &&garde<=100){
                return "成绩优秀";
            }
            else if(garde >=80 &&garde<=89){
                return "成绩良好";
            }
            else if(garde >=70 &&garde<=79){
                return "成绩中等";
            }
            else if(garde >=60 &&garde<=69){
                return "成绩及格";
            }
            else{
                return "成绩不及格";
            }
        };
        System.out.println(a.check(85));
    }
}
